package com.xbongbong.admin.domain.entity;

import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 镜像菜单配置
 * @author xingxing.xiao
 * @date 2020/01/09 15:57
 */
@Getter
@Setter
@ToString
public class MirrorMenuEntity extends Entity {
    private static final long serialVersionUID = 2566307125769090517L;

    /**
     * 主键id
     */
    private Long id;
    /**
     * 镜像id
     */
    private Long mirrorId;
    /**
     * 镜像应用id
     */
    private Long mirrorAppId;
    /**
     * 来源菜单id
     */
    private Long sourceMenuId;
    /**
     * 来源应用id
     */
    private Long sourceAppId;
    /**
     * 公司id
     */
    private String corpid;

    /**
     * 父类id
     */
    private Long parentId;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 应用图标
     */
    private String icon;
    /**
     * 颜色，16进制色，如 FF0000
     */
    private String color;

    /**
     * 菜单排序
     */
    private Integer sort;

    /**
     * 菜单类型，1 分组，2 表单，3 表单(开启流程)，4 统计
     */
    private  Integer type;

    /**
     * 创建者userId
     */
    private String creatorId;

    /**
     * 创建时间时间戳
     */
    private Long addTime;

    /**
     * 更新时间时间戳
     */
    private Long updateTime;

    /**
     * 删除标记
     */
    private Integer del;

    /**
     * 菜单标示，主要用于saas菜单识别，如"contractList"
     */
    private String alias;

    /**
     * 1为saas菜单，2为自建菜单
     */
    private Integer saasMark;

    /**
     * 是否启用，1启用，0不启用
     */
    private Integer enable;

    /**
     * 对应的链接
     */
    private String url;
    /**
     * 手机端对应的链接
     */
    private String mobileUrl;
    /**
     * 经销商标识
     */
    private Integer distributorMark;

    public MirrorMenuEntity() {

    }

    public MirrorMenuEntity(Long mirrorId,Long mirrorAppId,Long sourceAppId,Long sourceMenuId,String corpid,Long parentId,String name,String icon,String color,Integer sort,Integer type,String creatorId,Integer del,String alias,Integer saasMark,Integer enable,String url,String mobileUrl, Integer distributorMark) {
        this.mirrorId = mirrorId;
        this.mirrorAppId = mirrorAppId;
        this.sourceAppId = sourceAppId;
        this.sourceMenuId = sourceMenuId;
        this.corpid = corpid;
        this.parentId = parentId;
        this.name = name;
        this.icon = icon;
        this.color = color;
        this.sort = sort;
        this.type = type;
        this.creatorId = creatorId;
        this.del = del;
        this.alias = alias;
        this.saasMark = saasMark;
        this.enable = enable;
        this.url = url;
        this.mobileUrl = mobileUrl;
        this.distributorMark = distributorMark;
    }
}
